package com.zcf.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/11/18 13:58
 */
@Data
@TableName("user_record")
public class UserRecord extends Model<UserRecord> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userid;
    private Long uuid;
    private String nickname;
    private String wximg;

    @TableField("create_time")
    private Date createTime;

    private Integer roomid;
    @TableField("room_grade")
    private Integer roomGrade;
    @TableField("sum_winnumber")
    private Integer sumWinnumber;
    @TableField("game_type")
    private Integer gameType;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
